<?php
include_once "xAP-functions/webincludes.php";

$sql="select * from xAP_Widget_Library order by module,title";
$result=dbquery($sql);

?>
<div class='topright'><a href='#' OnClick="AddClose()"><img src='/xAP-Layout/<?=$config["theme"]?>/images/close.png'></a></div>
<BR>
<? foreach($result as $row):?>
<div id="newwidget<?=$row["WidgetID"]?>" class='widgetwrapper widgetadd normaltext'><?=$row["Title"]?></div>
<? endforeach;?>
